
import { $ } from './tools.js';
import { login } from './api.js';

import { setCookie } from './cookie.js';


$('button').onclick = async function () {
    const username = $('.user').value;
    const password = $('.pwd').value;
    const res = await login({
        username,
        password
    })
    console.log(res);
}